package com.dxiang.demo.web.controller;

import com.dxiang.demo.service.CommonValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommonValueController extends BaseController{

    @Autowired
    private CommonValueService valueService;

    @RequestMapping("/game/commonValue")
    public ResponseEntity<?>  getCommonValues() throws Exception{
        return success(valueService.getCommonValue());
    }
}
